use std::collections::HashMap;

pub fn new_count_distinct(input_str: &str) -> usize {
    let unique = HashMap::new();
    let ret = input_str.split(",").fold(unique, |mut acc, x| {
        acc.insert(x,1);
        acc
    });
    ret.keys().len()
}
